<!--#INCLUDE FILE="config.asp"-->

<%

result = request("result")
name = request("name")
guestid = request("guestid")

		set objConnect = server.createObject("ADODB.Connection")       
		objConnect.open conStr

		Set oCmd = Server.CreateObject("ADODB.Command")

		oCmd.ActiveConnection = objConnect
		oCmd.CommandText = "sp_add_new_salesAgent" 
		oCmd.CommandType = 4

		Set result = oCmd.CreateParameter("@result", 200,1,100, result)
		oCmd.Parameters.Append result
		
		Set name = oCmd.CreateParameter("@name", 200,1,100, name)
		oCmd.Parameters.Append name
		
		Set guestid = oCmd.CreateParameter("@guestid", 3,1,100, guestid)
		oCmd.Parameters.Append guestid
		
		Set userid = oCmd.CreateParameter("@userid", 3,1,100,session("AdminId"))
		oCmd.Parameters.Append userid

		set rss = oCmd.execute
%>